/**   
 * @Title: Tv.java
 * @Package com.cityoneyes.bean
 * @Description: TODO
 * @author Rick
 * @date 2011-8-3 下午10:41:02
 * @version V1.0   
 */
package com.cityoneyes.bean;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @ClassName: Tv
 * @Description: TV实体Bean
 * @author Rick
 * @date 2011-8-3 下午10:41:02
 */
@Entity
@Table(name="t_tv")
public class Tv implements Serializable {

	private static final long serialVersionUID = 6227274768549671923L;

	@Id 
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id")
	private int id;
	@Column(name="tv_name")
	private String tvName;
	@Column(name="order_seq")
	private int orderSeq;
	@Column(name="remarks")
	private String remarks;
//	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
//	@JoinColumn(name = "id", insertable = false, updatable = false)
//	private Type type;
	@Column(name="tv_type")
	private int tvType;
	@Column(name="tv_img")
	private String tvImg;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTvName() {
		return tvName;
	}
	public void setTvName(String tvName) {
		this.tvName = tvName;
	}
	public int getOrderSeq() {
		return orderSeq;
	}
	public void setOrderSeq(int orderSeq) {
		this.orderSeq = orderSeq;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getTvImg() {
		return tvImg;
	}
	public void setTvImg(String tvImg) {
		this.tvImg = tvImg;
	}
	public int getTvType() {
		return tvType;
	}
	public void setTvType(int tvType) {
		this.tvType = tvType;
	}
}
